<template>
  <Header />
  <div class="container">
    <router-view />
  </div>
  <div id="nav">
    <router-link to="/">Todo</router-link> |
    <router-link to="/calender">日历</router-link> |
    <router-link to="/weather">天气</router-link> |
    <router-link to="/qrcode">转二维码</router-link>
  </div>
</template>

<script>
import Header from './views/Header'
import { computed } from 'vue'
export default {
  name: 'App',
  components: {
    Header
  },
  setup () {

  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.container {
  flex: 1;
  padding: 10px;
  overflow: scroll;
}

#nav {
  padding: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 2px rgb(110, 109, 109) solid;
}

#nav a {
  font-weight: bold;
  text-decoration: none;
  margin: 4px;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
